package com.kfm.base.it;

import com.kfm.base.movie.Student;

import java.util.Arrays;

public class MyListTest {

    public static void main(String[] args) {
        MyList list = new MyList(0); // 0 10

        System.out.println(list.isEmpty());

        Student stu = new Student("张三", 20);
        Student stu1 = new Student("李四", 21);
        list.add(stu);
        list.add(stu1);
//        list.add("b");
//        list.add("c");

        System.out.println(list.size());

//        System.out.println(list.indexOf("a"));

        Object[] objs = list.toArray();
        System.out.println(Arrays.toString(objs));

        stu.setName("zhangsan");

        System.out.println(stu == objs[0]);
        System.out.println(stu1 == objs[1]);

        System.out.println(list.get(0));


    }
}
